﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterAdmin.Master" AutoEventWireup="true" CodeBehind="QuanLyNguoiDung.aspx.cs" Inherits="EC21_EDiamond.Admin.QuanLyNguoiDung" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <table style="width: 100%;">
        <tr>
            <td colspan="2" class="text-center" style="font-size: xx-large; color: #000000"><strong>QUẢN LÝ NGƯỜI DÙNG</strong></td>
        </tr>
        <tr>
            <td style="width: 508px; text-align: right;" class="text-right">Tài Khoản:</td>
            <td class="text-left">
                <asp:TextBox ID="txtTaiKhoan" runat="server" Width="170px" placeholder="Tên Tài Khoản"></asp:TextBox>
            &nbsp;&nbsp;
                <asp:Button ID="btnTim" runat="server" OnClick="btnTim_Click" Text="Tìm Kiếm" CausesValidation="False" />
            </td>
        </tr>
        <tr>
            <td style="width: 508px; text-align: right;" class="text-right">Email:</td>
            <td class="text-left">
                <asp:TextBox ID="txtEmail" runat="server" Width="170px" placeholder="Địa Chỉ Email"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="txtEmail" ErrorMessage="Không để trống!" style="color: #FF0000"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtEmail" ErrorMessage="Địa Chỉ Email không hợp lệ!" style="color: #FF0000" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td style="width: 508px; text-align: right; height: 29px;" class="text-right">Quyền: </td>
            <td style="height: 29px" class="text-left">
                <asp:DropDownList ID="drpQuyen" runat="server">
                    <asp:ListItem Value="admin">Admin</asp:ListItem>
                    <asp:ListItem Value="staff">Nhân Viên</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td style="width: 508px; height: 48px;" class="text-right">
                <asp:Button ID="btnCapNhat" runat="server" Text="Cập Nhật" OnClick="btnDongY_Click" />
            </td>
            <td style="height: 48px" class="text-left">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Button ID="btnXoa" runat="server" Text="Xóa" OnClick="btnXoa_Click" Width="87px" />
            </td>
        </tr>
        <tr>
            <td colspan="2">

                <asp:GridView ID="grwDanhSachNguoiDung" runat="server" AutoGenerateColumns="False" CellPadding="4" ForeColor="Black" GridLines="Horizontal" Width="1069px" OnSelectedIndexChanging="grwDanhSachNguoiDung_SelectedIndexChanging" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px">
                    <Columns>
                        <asp:CommandField ShowSelectButton="True" SelectText="Chọn" />
                        <asp:BoundField DataField="UserName" HeaderText="Tài Khoản" />
                        <asp:BoundField DataField="email" HeaderText="Email" />
                        <asp:BoundField HeaderText="Quyền" DataField="rolename" />
                    </Columns>
                    <FooterStyle BackColor="#CCCC99" ForeColor="Black" />
                    <HeaderStyle BackColor="#333333" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Right" />
                    <SelectedRowStyle BackColor="#CC3333" Font-Bold="True" ForeColor="White" />
                    <SortedAscendingCellStyle BackColor="#F7F7F7" />
                    <SortedAscendingHeaderStyle BackColor="#4B4B4B" />
                    <SortedDescendingCellStyle BackColor="#E5E5E5" />
                    <SortedDescendingHeaderStyle BackColor="#242121" />
                </asp:GridView>

            </td>
        </tr>
    </table>
</asp:Content>
